Looping in golang

74

i := 0
sum := 0
for i < 10 {
 sum += 1
  i++
}
fmt.Println(sum)

Comments

Submit
0 Comments